home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / scooby_d.swf / scripts / __Packages / com / ndimedia / display / Sprite.as
Encoding:
Text File  |  2011-03-26  |  408 b   |  22 lines

  1. class com.ndimedia.display.Sprite
  2. {
  3.    var m_graphics;
  4.    function Sprite(scope, d)
  5.    {
  6.       if(!d)
  7.       {
  8.          d = scope.getNextHighestDepth();
  9.       }
  10.       this.m_graphics = scope.createEmptyMovieClip("s_" + d,d);
  11.    }
  12.    function get graphics()
  13.    {
  14.       return this.m_graphics;
  15.    }
  16.    function move(x, y)
  17.    {
  18.       this.graphics._x = x;
  19.       this.graphics._y = y;
  20.    }
  21. }
  22.